package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import com.itheima.pojo.Member;

public interface MemberDao {
    Page<Member> findByCondition(@Param("queryString") String queryString);

    void add(Member member);


    void update(Member member);

    List<Member> findAll();

    Member findById(@Param("id") Integer id);

    void delete(@Param("id") Integer id);


    Member findByTelephone(String telephone);

    void save(Member newMember);

}
